home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / GIFLIB12.ARJ / MAKEFILE.UNX < prev    next >
Text File  |  1991-05-12  |  2KB  |  73 lines

  1. #
  2. # This is the make file for the lib subdirectory of the GIF library
  3. # In order to run it gcc is assumed to be available.
  4. #
  5. #                Gershon Elber, Jun 1989
  6. #
  7.  
  8. #
  9. # Where all the include files are:
  10. INCS = -I.
  11.  
  12. #
  13. # What devices we should be able to grab into gif images. Note that if
  14. # you enable them the associated library must be available at link time.
  15. # Avaiable devices:
  16. # 1. EGA, VGA, SVGA (800x600), Hercules - all on IBM PC only.
  17. # 2. SGI 4D Irix using gl library (Add -D__SGI_GL__).
  18. # 3. X11 using libX.a (Add -D__X11__)
  19. DEVS = -D__SGI_GL__
  20.  
  21. #
  22. # These are the flags for gcc, in BSD4.3 or Sun O.S. 4.0.3
  23. #
  24. # If your system has all function prototypes for gcc, replace all
  25. # the -Wxxx with -Wall. I can not add -Wimplicit as my system uses old cc
  26. # h files.
  27. #
  28. # CC = gcc
  29. #
  30. # CFLAGS = -O -c -W -Wreturn-type -Wcomment
  31. # CFLAGS = -g -pg -c -W -Wreturn-type -Wcomment
  32. #
  33. # for sun 4 (gunnars@ifi.uib.no). Tested using gcc 1.39.
  34. #
  35. # CFLAGS = -O -c -sun4 -W -Wreturn-type -Wcomment -DUSE_VARARGS
  36. # CFLAGS = -g -c -sun4 -W -Wreturn-type -Wcomment -DUSE_VARARGS
  37.  
  38. #
  39. # These are the flags for cc on SGI iris4d. O.S. IRIX 3.2
  40. #
  41. CC = cc
  42. #
  43. CFLAGS = -O -c -DSYSV -DNO_VOID_PTR -DUSE_VARARGS -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4
  44. # CFLAGS = -g -p -c -DSYSV -DNO_VOID_PTR -DUSE_VARARGS -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4
  45.  
  46. #
  47. # These are the flags for xlc, ansi compiler for IBM R6000
  48. #
  49. # CC = xlc
  50. #
  51. # CFLAGS = -O -c -qnoro -D_POSIX_SOURCE -D_ALL_SOURCE -DR6000
  52. # CFLAGS = -g -pg -c -qnoro -D_POSIX_SOURCE -D_ALL_SOURCE -DR6000
  53.  
  54. OBJS = dev2gif.o egif_lib.o dgif_lib.o gif_hash.o gif_err.o \
  55.     quantize.o qprintf.o getarg.o
  56.  
  57. .c.o:
  58.     $(CC) $(INCS) $(DEVS) $(CFLAGS) $<
  59.  
  60. libgif.a: $(OBJS)
  61.     rm -f libgif.a
  62.     ar rcv libgif.a *.o
  63.     -ranlib libgif.a
  64.  
  65. dev2gif.o: gif_lib.h
  66. egif_lib.o: gif_lib.h gif_hash.h
  67. dgif_lib.o: gif_lib.h gif_hash.h
  68. gif_hash.o: gif_lib.h gif_hash.h
  69. gif_err.o: gif_lib.h
  70. quantize.o: gif_lib.h
  71. qprintf.o: gif_lib.h
  72. getarg.o: getarg.h
  73.